package cn.phecda.boot.tenant.data.mybatis;

import cn.phecda.boot.data.mybatis.entity.AbstractStatusMybatisEntity;
import cn.phecda.boot.tenant.core.entity.TenantEntity;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * <p> 租户状态实体 </p>
 *
 * @author : wanpinwei
 */
public abstract class AbstractTenantStatusMybatisEntity extends AbstractStatusMybatisEntity implements TenantEntity {

    @Schema(description = "租户ID")
    @TableField(value = "tenant_id", updateStrategy = FieldStrategy.NEVER)
    private String tenantId;

    @Override
    public String getTenantId() {
        return tenantId;
    }

    @Override
    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }
}
